package com.sinosoft.call;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;

@ComponentScan("com.sinosoft")
//组件扫描
@Configuration
//配置控制
@SpringBootApplication
@EnableEurekaClient
public class IccCallServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(IccCallServiceApplication.class, args);
    }

    @Bean
    public RestTemplate restTmp() {
        return new RestTemplate();
    }

}
